package o;

import com.huawei.appgallery.foundation.store.bean.detail.DetailResponse;
import com.huawei.appgallery.foundation.ui.css.CSSStyleSheet;
import com.huawei.appgallery.foundation.ui.framework.cardframe.bean.BaseDetailResponse;
import com.huawei.appgallery.foundation.ui.framework.cardframe.bean.BaseDetailResponse.Layout;
import com.huawei.appmarket.service.store.awk.bean.TopImageCardBean;
import java.util.ArrayList;
import java.util.List;

public class dhp extends eei {
    protected void ॱ(cia o_cia, chd o_chd, BaseDetailResponse baseDetailResponse) {
        super.ॱ(o_cia, o_chd, baseDetailResponse);
        if (o_chd != null && o_chd.ˏ() == 1 && (baseDetailResponse instanceof DetailResponse)) {
            DetailResponse detailResponse = (DetailResponse) baseDetailResponse;
            TopImageCardBean topImageCardBean = new TopImageCardBean();
            if (detailResponse.ˋॱ() != null) {
                topImageCardBean.ˎ(detailResponse.ˋॱ());
                if (detailResponse.ॱˊ() != null) {
                    topImageCardBean.ʼॱ(detailResponse.ॱˊ());
                }
                topImageCardBean.ʽ(detailResponse.ˊॱ());
                List arrayList = new ArrayList();
                arrayList.add(topImageCardBean);
                chz ˋ = o_cia.ˋ((long) "topimagecard".hashCode(), cib.ˏ("topimagecard"), 1, arrayList);
                CSSStyleSheet parse = CSSStyleSheet.parse(baseDetailResponse.ॱˎ());
                List ʻॱ = baseDetailResponse.ʻॱ();
                if (!CollectCheck.isEmpty(ʻॱ)) {
                    ˋ.ˋ(parse, ((Layout) ʻॱ.get(0)).ˏ());
                    return;
                }
                return;
            }
            Logger.ˏ("SecondaryListProviderCreator", "response getHeadIcon_ is null");
        }
    }
}
